import java.util.Arrays;

public class test {
    public static int func(int[] array){
        Arrays.sort(array);
        return array.length/2;
    }

    public static void main(String[] args) {
        int[] array={1,3,3,3,1,1,3};
        System.out.println(func(array));
    }
}
